package controller

import (
	"im/service"
)

type Utils struct {
	Base
}

func (g Utils) GetAddress() {
	location,err := service.NewAmap().GetAddress(
		g.Ctx.URLParamDefault("address",""))
	if err != nil {
		g.SendSmile(nil)
		return
	}
	g.SendSmile(location)
}